package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.QuestionBankComplexityEnum;
import com.battle.pojo.enums.QuestionBankTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.math.BigDecimal;

/**
 * 题库下题目学习
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 */
@Data
@TableName(value = "QUESTION_BANK_DETAILS_STUDY",autoResultMap = true)
@Entity(name = "QUESTION_BANK_DETAILS_STUDY")
@AccEntity(value = "题库下题目学习", type = EntityType.SERVICE_ENTITY)
public class QuestionBankDetailsStudy extends DomainBaseEntity<QuestionBankDetailsStudy> {

    /**
     * 状态：0未开始 1已完成
     */
    @Column(length = 255)
    private Integer status;

    /**
     * 题库学习id
     */
    @Column()
    private Long questionBankStudyId;

    /**
     * 用户id
     */
    @Column()
    private Long userId;

    /**
     * 题库id
     */
    @Column()
    private Long questionBankId;

    /**
     * 题目id
     */
    @Column()
    private Long questionId;

    /**
     * 题目答案
     */
    @Column()
    private String bankAnswer;

    /**
     * 用户答案
     */
    @Column()
    private String userAnswer;

    /**
     * 是否正确
     */
    @Column()
    private Boolean isCorrect;

    /**
     * 解析
     */
    @Column()
    private String analysis;

    /**
     * 题目名称
     */
    @Column()
    private String name;

    /**
     * 题目类型：0单选，1多选，2判断
     */
    @Column()
    private QuestionBankTypeEnum type;

    /**
     * 题目选项
     */
    @Column()
    private String options;
}
